package com.cc.micro.common.enumeration;

import lombok.Getter;

/**
 * @author CC
 * time 2023-07-02
 * description
 */
@Getter
public enum HttpCode {

    OK(200,"成功"),
    Forbidden(403,"权限不足"),
    NOT_FOUND(404,"资源未找到"),
    BAD_REQUEST(400,"请求失败"),
    BAD_REQUEST_PARAM(401,"请求参数有误"),
    NO_SUPPORT_PRODUCT_TYPE(601,"暂时不支持此产品类型"),
    ERROR(500,"失败"),


    ;


    private Integer code;
    private String msg;
    private HttpCode(Integer code,String msg){
        this.code=code;
        this.msg=msg;
    }

}
